package ch05.home;

class Exercise5_03 {
	public static void main(String[] args) {
		int[] arr = { 10, 20, 30, 40, 50 };
		int sum = 0;
		//<1
		for (int i = 0; i < arr.length; i++) {
			sum += arr[i];
		}
		//1>
		System.out.println("sum=" + sum); // sum=150
	}
}